<!DOCTYPE html>
<!-- suppress ThymeleafVariablesResolveInspection -->
<!-- suppress All -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>南瓜课堂- 传道 · 授业 · 解惑</title>
    <meta name="Keywords" content="关键词,关键词">
    <meta name="description" content="">
    <link rel="shortcut icon" type="image/x-icon" href="/static/image/ds/logo/pinSlogo.png"
          th:href="@{/static/image/ds/logo/pinSlogo.png}"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css" th:href="@{/static/layui/css/layui.css}">
    <link rel="stylesheet" href="/static/css/ds/main2.css" th:href="@{/static/css/ds/main2.css}">
    <link rel="stylesheet" href="/static/css/ds/znav.css" th:href="@{/static/css/ds/znav.css}">
    <link rel="stylesheet" href="/static/css/gs/index_login.css" th:href="@{/static/css/gs/index_login.css}">
    <link rel="stylesheet" href="/static/css/gs/bootstrap.min.css" th:href="@{/static/css/bootstrap.min.css}">
    <link rel="stylesheet" href="/static/js/gs/laypage/skin/laypage.css"
          th:href="@{/static/js/laypage/skin/laypage.css}">


    <script type="text/javascript" src="/static/js/jquery-1.8.3.js" th:src="@{/static/js/jquery-1.8.3.js}"></script>
    <script src="/static/js/gs/jquery-latest.js" th:src="@{/static/js/gs/jquery-latest.js}"></script>
    <script th:src="@{/static/js/vue/vue.min.js}" src="/static/js/gs/vue/vue.min.js"></script>
    <script th:src="@{/static/js/jquery/jquery.min.js}" src="/static/js/gs/jquery/jquery.min.js"></script>
    <script th:src="@{/static/js/laypage/laypage.js}" src="/static/js/gs/laypage/laypage.js" charset="utf-8"></script>
    <script th:src="@{/static/js/layer/layer.js}" src="/static/js/gs/layer/layer.js" charset="utf-8"></script>
    <script th:src="@{/static/js/gs/layui-v2.5.5/layui/lay/modules/laydate.js}"
            src="/static/js/gs/layui-v2.5.5/layui/lay/modules/laydate.js"></script>
    <script th:src="@{/static/js/gs/zixie/jquery-1.10.2.min_65682a2.js}"
            src="/static/js/gs/zixie/jquery-1.10.2.min_65682a2.js"></script>
    <script src="/static/layui/layui.js" charset="utf-8" th:src="@{/static/layui/layui.js}"></script>
    <script src="/static/js/gs/zixie/index_login.js" th:src="@{/static/js/gs/zixie/index_login.js}"></script>
    <!--  引入js  -->
    <script type="text/javascript" th:src="@{https://cdn.goeasy.io/goeasy-1.0.3.js}"></script>
    <style>
        a {
            text-decoration: none;
        }

         a:hover {
            text-decoration: none;
        }
    </style>
    <style type="text/css">
        .s{
            display: none;
            width: 500px;
            height: 500px;
            padding: 0px;
            position: absolute;
            top: 50px;
            left: 1213px;
            height: auto;
            border: 1px #696969 solid;
            border-top-style: none;
            background:rgba(0,0,0,0.5);
        }
        .h_info:hover{
            display: block;
            background-color:#ff8c00;
        }
        #f:hover #s1{
            display: block;
        }
        .s1 a:hover{
            background-color:yellow;
            color: orangered;
        }
        #tubiao{
            display: none;
        }
    </style>
</head>

<body>

<!--E 头部样式-->
<div class="header">

    <div class="h_top">

        <!--S logo-->
        <div class="h_logo">
            <a href="/user/toIndex"><img src="../static/image/ds/logo/1.png" alt="南瓜课堂" width="145" height="38"/></a>
            <!--S 所有列表 -->
            <div class="s_nav">
                <ul>
                    <li class="z_nav">
                        <div id="type">
                            <ul class="z_1">
                                <li v-for="(item,index) in result" @mouseover="sel(item.typeId)">
                                    <a href="javascript:void (0)" class="nav_1" @click="typeToIndex2(item.typeId)">{{item.typeName}}</a>
                                </li>
                            </ul>
                        </div>
                        <div class="nav_2 case1">
                            <div class="n_2" id="subject">
                                <ul>
                                    <li v-for="(item,index) in result">
                                        <input type="hidden" :value="item.subjectId" class="hiddenSubjectId"/>
                                        <a href="javascript:void (0);" class="subjectName" @click="subjectToIndex2(item.subjectId)">{{item.subjectName}}</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <!--E 所有列表 -->
        </div>

        <!--E logo-->

        <!--S 头部导航-->
        <div class="h_nav">
            <ul>
                <li>
                    <a href="/user/toIndex">首页</a>
                </li>
                <li>
                    <a href="/type/toType">全部课程</a>
                </li>
                <li>
                    <a href="#teacher">讲师团队</a>
                </li>
                <li>
                    <a href="#" id="lecturerEnter">讲师入驻</a>
                </li>
                <li>
                    <a href="/member/toVip">VIP</a>
                </li>
            </ul>
        </div>
        <!--E 头部导航-->

        <!--S 搜索框-->
        <div class="h_search">
            <input type="text" class="h_text"/>
            <a href="#" class="h_btn"></a>
        </div>
        <!--E 搜索框-->

        <!--S 消息   个人中心-->
        <div class="h_message">
            <div id="f">
                <div class="h_info">
                    <a id="info" href="#"></a>
                    <i id="tubiao"></i>
                </div>
                <div class="s" id="s1" style="height: 500px;color: white">
                    <div id="message" style="font-size: large;padding: 20px;height: 400px;
                   ">
                        暂无新消息
                    </div>
                    <div style="color:#ffffff;font-size: large;border-top: 1px solid;">
                        <br/>
                        <a id="lookAllInfo" style="color: #FFFFFF;padding: 20px;">查看全部</a>
                    </div>
                </div>
            </div>
            <!--个人中心-->

            <div class="h_pic">

                <!--                登录注册，登录成功后显示name（高顺）-->
                <span th:if="${session.user==null}">
		           <a class="h_log" href="#" onclick="button1()" id="login1">登录/注册</a>
	            </span>
                <span th:if="${session.user!=null}">
		            <span style="color: white"><span th:text="${session.user.userName}" style="color: white" id="hlog"
                                                     onclick="gerenzhongxin()"></span></span>
                    <span style="color: white" id="exit"><a href="/user/toIndexUpdatePhone">退出</a></span>
	            </span>
                <!--                登录注册，登录成功后显示name（高顺）-->

            </div>
        </div>
        <!--E 消息   个人中心-->
    </div>

</div>
<div class="kong"></div>
<!--E 头部样式-->

<!--轮播图  start-->
<div class="layui-carousel" id="test1" lay-filter="test1">
    <div carousel-item="">
        <div>
            <a href="#">
                <img src="../static/image/ds/slideshow/slideshow2.png"/>
            </a>
        </div>
        <div>
            <a href="#">
                <img src="../static/image/ds/slideshow/slideshow5.png"/>
            </a>
        </div>
        <div>
            <a href="#">
                <img src="../static/image/ds/slideshow/slideshow4.png"/>
            </a>
        </div>
        <div>
            <a href="#">
                <img src="../static/image/ds/slideshow/slideshow1.jpg"/>
            </a>
        </div>
    </div>
</div>

<!--end 轮播图-->
<div>
    <div>
        <!--course_list start-->
        <div class="course_list" id="user">
            <div class="course_fize">
                <span class="fize_mc">{{type.typeName}}</span>
                <span class="fize_gd">
                    <a href="javascript:void(0);" @click="typeToIndex2(type.typeId)">更多</a>
                </span>
            </div>
            <div class="c_course">
                <div class="c_con c_list" v-for="(item,index) in result"  v-if="index < 10">
                    <img :src="item.broadcastCover" v-if="item.broadcastTitle !== undefined" width="222" height="145"/>
                    <img :src="item.CourseCover" v-else width="222" height="145"/>
                    <div class="c_yy"></div>
                    <div class="c_desc">
                        <p class="c_title" v-if="item.broadcastTitle !== undefined">{{item.broadcastTitle}}</p>
                        <p class="c_title" v-else>{{item.courseName}}</p>
                        <p>讲师：{{item.teacher.teacherName}}</p>
                        <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_btn" @click="toBroadcastMsg(item.broadcastId)">查看详情</a>
                        <a href="javascript:void (0)" v-else class="c_btn" @click="toCourseMsg(item.courseId)">查看详情</a>
                    </div>
                    <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_tit_main" @click="toBroadcastMsg(item.broadcastId)">{{item.broadcastTitle}}</a>
                    <a href="javascript:void (0)" v-else class="c_tit_main" @click="toCourseMsg(item.courseId)">{{item.courseName}}</a>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <!--end course_list-->

             <!--   course_list start-->
                <div class="course_list" id="user2">
                    <div class="course_fize">
                        <span class="fize_mc">{{type.typeName}}</span>
                        <span class="fize_gd">
                            <a href="javascript:void(0);" @click="typeToIndex2(type.typeId)">更多</a>
                        </span>
                    </div>
                    <div class="c_course" >
                        <div class="c_con c_list" v-for="(item,index) in result" v-if="index < 10 ">
                            <img :src="item.broadcastCover" v-if="item.broadcastTitle !== undefined" width="222" height="145"/>
                            <img :src="item.CourseCover" v-else width="222" height="145"/>
                            <div class="c_yy"></div>
                            <div class="c_desc">
                                <p class="c_title" v-if="item.broadcastTitle !== undefined">{{item.broadcastTitle}}</p>
                                <p class="c_title" v-else>{{item.courseName}}</p>
                                <p>讲师：{{item.teacher.teacherName}}</p>
                                <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_btn" @click="toBroadcastMsg(item.broadcastId)">查看详情</a>
                                <a href="javascript:void (0)" v-else class="c_btn" @click="toCourseMsg(item.courseId)">查看详情</a>
                            </div>
                            <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_tit_main" @click="toBroadcastMsg(item.broadcastId)">{{item.broadcastTitle}}</a>
                            <a href="javascript:void (0)" v-else class="c_tit_main" @click="toCourseMsg(item.courseId)">{{item.courseName}}</a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
             <!--   end course_list

                course_list start-->
                <div class="course_list" id="user3">
                    <div class="course_fize">
                        <span class="fize_mc">{{type.typeName}}</span>
                        <span class="fize_gd">
                            <a href="javascript:void(0);" @click="typeToIndex2(type.typeId)">更多</a>
                        </span>
                    </div>
                    <div class="c_course" >
                        <div class="c_con c_list" v-for="(item,index) in result" v-if="index < 10 ">
                            <img :src="item.broadcastCover" v-if="item.broadcastTitle !== undefined" width="222" height="145"/>
                            <img :src="item.CourseCover" v-else width="222" height="145"/>
                            <div class="c_yy"></div>
                            <div class="c_desc">
                                <p class="c_title" v-if="item.broadcastTitle !== undefined">{{item.broadcastTitle}}</p>
                                <p class="c_title" v-else>{{item.courseName}}</p>
                                <p>讲师：{{item.teacher.teacherName}}</p>
                                <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_btn" @click="toBroadcastMsg(item.broadcastId)">查看详情</a>
                                <a href="javascript:void (0)" v-else class="c_btn" @click="toCourseMsg(item.courseId)">查看详情</a>
                            </div>
                            <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_tit_main" @click="toBroadcastMsg(item.broadcastId)">{{item.broadcastTitle}}</a>
                            <a href="javascript:void (0)" v-else class="c_tit_main" @click="toCourseMsg(item.courseId)">{{item.courseName}}</a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
        <!--        end course_list

                course_list start-->
                <div class="course_list" id="user4">
                    <div class="course_fize">
                        <span class="fize_mc">{{type.typeName}}</span>
                        <span class="fize_gd">
                            <a href="javascript:void(0);" @click="typeToIndex2(type.typeId)">更多</a>
                        </span>
                    </div>
                    <div class="c_course" >
                        <div class="c_con c_list" v-for="(item,index) in result" v-if="index < 10 ">
                            <img :src="item.broadcastCover" v-if="item.broadcastTitle !== undefined" width="222" height="145"/>
                            <img :src="item.CourseCover" v-else width="222" height="145"/>
                            <div class="c_yy"></div>
                            <div class="c_desc">
                                <p class="c_title" v-if="item.broadcastTitle !== undefined">{{item.broadcastTitle}}</p>
                                <p class="c_title" v-else>{{item.courseName}}</p>
                                <p>讲师：{{item.teacher.teacherName}}</p>
                                <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_btn" @click="toBroadcastMsg(item.broadcastId)">查看详情</a>
                                <a href="javascript:void (0)" v-else class="c_btn" @click="toCourseMsg(item.courseId)">查看详情</a>
                            </div>
                            <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_tit_main" @click="toBroadcastMsg(item.broadcastId)">{{item.broadcastTitle}}</a>
                            <a href="javascript:void (0)" v-else class="c_tit_main" @click="toCourseMsg(item.courseId)">{{item.courseName}}</a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
            <!--    end course_list

                course_list start-->
                <div class="course_list" id="user5">
                    <div class="course_fize">
                        <span class="fize_mc">{{type.typeName}}</span>
                        <span class="fize_gd">
                            <a href="javascript:void(0);" @click="typeToIndex2(type.typeId)">更多</a>
                        </span>
                    </div>
                    <div class="c_course" >
                        <div class="c_con c_list" v-for="(item,index) in result" v-if="index < 10 ">
                            <img :src="item.broadcastCover" v-if="item.broadcastTitle !== undefined" width="222" height="145"/>
                            <img :src="item.CourseCover" v-else width="222" height="145"/>
                            <div class="c_yy"></div>
                            <div class="c_desc">
                                <p class="c_title" v-if="item.broadcastTitle !== undefined">{{item.broadcastTitle}}</p>
                                <p class="c_title" v-else>{{item.courseName}}</p>
                                <p>讲师：{{item.teacher.teacherName}}</p>
                                <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_btn" @click="toBroadcastMsg(item.broadcastId)">查看详情</a>
                                <a href="javascript:void (0)" v-else class="c_btn" @click="toCourseMsg(item.courseId)">查看详情</a>
                            </div>
                            <a href="javascript:void (0)" v-if="item.broadcastTitle !== undefined" class="c_tit_main" @click="toBroadcastMsg(item.broadcastId)">{{item.broadcastTitle}}</a>
                            <a href="javascript:void (0)" v-else class="c_tit_main" @click="toCourseMsg(item.courseId)">{{item.courseName}}</a>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--end course_list-->
    </div>

</div>
<div class="teams">
    <!--teacher start-->
    <div class="teacher">
        <h2>讲师团队</h2>
        <div class="t_team" id="teacher">
            <ul>
                <li v-for="(item,index) in result" v-if="index < 10 ">
                    <div class="t_pic">
                        <a href="#">
                            <img :src="item.teacherPic" width="66" height="66"/>
                        </a>
                    </div>
                    <div class="t_desc">
                        <a href="#">{{item.teacherNicheng}}</a>
                        <div>简介：{{item.teacherIntroduction}}</div>
                    </div>
                </li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    <!--end teacher-->

    <!--links start-->
    <div class="links">
        <h2>友情链接</h2>
        <div class="l_a">
            <a href="https://www.yy.com/">YY直播</a>|
            <a href="http://www.gaokaopai.com/">高考派</a>|
            <a href="https://www.bilibili.com/">哔哩哔哩</a>|
            <a href="https://www.csdn.net/">CSDN</a>|
            <a href="http://www.xiaodao360.com/">校导网</a>|
            <a href="http://cet.neea.edu.cn/">四六级英语</a>|
            <a href="https://www.chinaielts.org/">雅思考试</a>|
            <a href="https://toefl.neea.cn/">托福官网</a>|
            <a href="https://bbs.moonseo.cn/">SEO研究中心</a>|
            <a href="http://www.zxxk.com/">学科网</a>|
            <a href="http://www.61ertong.com/">六一儿童网</a>|
            <a href="http://www.kekenet.com/">可可英语</a>|
            <a href="https://www.examw.com/">中华考试网</a>
        </div>
    </div>
    <!--end links-->

</div>
<!--end teams-->

<!--footer start-->
<div class="footer">
    <div class="f_con">
        <div class="f_desc">
            <dl>
                <dt>关于南瓜</dt>
                <dd>
                    <a href="#">了解南瓜</a>
                </dd>
                <dd>
                    <a href="#">加入南瓜</a>
                </dd>
                <dd>
                    <a href="#">联系我们</a>
                </dd>
            </dl>

            <dl>
                <dt>学习资讯</dt>
                <dd>
                    <a href="#">学院课程</a>
                </dd>
                <dd>
                    <a href="#">就业指南</a>
                </dd>
            </dl>

            <dl>
                <dt>服务中心</dt>
                <dd>
                    <a href="#">安卓APP</a>
                </dd>
                <dd>
                    <a href="#">IOS APP</a>
                </dd>
            </dl>

            <dl>
                <dt>关注我们</dt>
                <dd>
                    <a href="#" class="share f_wb"></a>
                    <a href="#" class="share f_qq"></a>
                </dd>
            </dl>

        </div>


        <div class="f_tel">
            <div class="f_qrcode">
                <img src="../static/image/ds/weixin.png" alt="南瓜官方微信" width="102" height="127"/>
            </div>
            <div class="f_time">
                <p class="f_phone">400-009-6359</p>
                <p class="f_price">
                    <span>周一至周六 9:30-23:00</span>
                    <span>（仅收市话费）</span>
                </p>
                <p class="f_mm">24小时在线客服</p>
            </div>
        </div>
        <div class="clear"></div>
    </div>

</div>
<!--end footer-->

<!--copyright start-->
<div class="copyright">
    Copyright &copy; 2013-2014 www.mooncollege.cn All Rights Reserved 版权所有：南瓜课堂教育咨询有限公司 备案号：备13016338号
</div>
<!--end copyright-->


<script>
    layui.use(['carousel', 'form'], function () {
        var carousel = layui.carousel,
            form = layui.form;

        //常规轮播
        carousel.render({
            elem: '#test1',
            arrow: 'always',
            width: '100%' //设置容器宽度
            ,
            height: '340px'
        });
    });

    // 高顺-------------------------------------------------------------------------------------------------
    //点击登录/注册弹出gs_login下的loginAndRed登录注册页面	（高顺）
    var dengluzhuce = function () {
        var index = layer.open({
            type: 2,
            title: false,
            offset: '70px',
            closeBtn: false,
            skin: 'yourclass',
            // fix: false,
            // maxmin: true,
            shadeClose: true,
            // area: ['611px', '500px'],
            area: ['500px', '520px'],
            content: '/user/loginAndRed',
            end: function () {
                shuaxin();
                getS();
            }
        });
    }

    function button1() {
        dengluzhuce();
    }

    //登录回来后刷新页面用
    var shuaxin = function () {
        window.close();
        window.location.href = document.referrer;
    }

    // 登录后去拿存在session的user
    var getS = function () {
        // var user = '<%=session.getAttribute("user")%>';
        // alert(user.length);  //js中不能获取session的属性值，只能获取对象
        $.ajax({
            url: '/user/getSession',
            type: 'post',
            dataType: 'json',
            success: function (msg) {

            }
        })
    };

    $("#lecturerEnter").click(function () {
        $.ajax({
            url: '/user/lecturerEnter',
            dataType: 'json',
            type: 'post',
            success: function (data) {
                if (data == "ok") {
                    window.location.href = "/user/toApplyTeacher";
                } else {
                    dengluzhuce();
                }
            }

        })
    })

    function gerenzhongxin() {
        location.href = "/toInfo";
    }

    // 高顺-------------------------------------------------------------------------------------------------


    //一级分类的显示
    var app = new Vue({
        el: '#type',
        data: {
            result: []
        }
    });


    /*获取一级分类列表*/
    function getAllType() {
        $.ajax({
            type: "post",
            dataType: "json",
            url: "/type/getShowType",
            success: function (data) {
                app.result = data;
            }
        })
    }

    getAllType();


    //二级分类的显示
    var subject = new Vue({
        el: '#subject',
        data: {
            result: []
        }
    });

    /*根据一级分类获取二级分类*/
    function sel(obj) {
        $.ajax({
            url: "/subject/getSubject",
            type: "post",
            dataType: "json",
            data: {
                typeId: obj
            },
            success: function (data) {
                subject.result = data;
            }
        })
    }



    /*  刘艺广 */
    //点击一级标题调到全部课程页面
    function typeToIndex2(typeId) {
        location.href = "/type/toType?typeId=" + typeId + "&subjectId="+undefined;
    }
    //点击而二级标题调到全部课程页面
    function subjectToIndex2(subjectId) {
        location.href = "/type/toType?typeId=" + undefined + "&subjectId="+subjectId;
    }
    //点击“查看详情”或者标题跳转到视频课程的详情页
    function toCourseMsg(courseId) {
        window.open("/course/toCourseMsg?courseId="+courseId,"_blank");
    }
    //点击“查看详情”或者标题跳转到直播课程的详情页
    function toBroadcastMsg(broadcastId) {
        window.open("/broadcast/toBroadcastMsg?broadcastId="+broadcastId,"_blank");
    }
    /*  刘艺广 */




    //课程的显示
    var user = new Vue({
        el: '#user',
        data: {
            result: []
            ,type:{

            }
        }
    });

    function getAllByTypeId(typeId) {
        $.ajax({
            type: "post",
            dataType: "json",
            data: {
                typeId: typeId
            },
            url: "/user/getAllBraodcastAndCoueseByTypeId",
            success: function (data) {
                user.result = data;
                user.type = data[0].type;
                console.log(data);
            }
        })
    }

    var user2 = new Vue({
        el: '#user2',
        data: {
            result: []
            ,type:{

            }
        }
    });

    var user3 = new Vue({
        el: '#user3',
        data: {
            result: []
            ,type:{

            }
        }
    });

    var user4 = new Vue({
        el: '#user4',
        data: {
            result: []
            ,type:{

            }
        }
    });

    var user5 = new Vue({
        el: '#user5',
        data: {
            result: []
            ,type:{

            }
        }
    });

    getAllByTypeId(1);


    function getAllByTypeId2(typeId) {
        $.ajax({
            type: "post",
            dataType: "json",
            data: {
                typeId: typeId
            },
            url: "/user/getAllBraodcastAndCoueseByTypeId",
            success: function (data) {
                user2.result = data;
                user2.type = data[0].type;
                console.log(data);
            }
        })
    }

    getAllByTypeId2(2);

    function getAllByTypeId3(typeId) {
        $.ajax({
            type: "post",
            dataType: "json",
            data: {
                typeId: typeId
            },
            url: "/user/getAllBraodcastAndCoueseByTypeId",
            success: function (data) {
                user3.result = data;
                user3.type = data[0].type;
                console.log(data);
            }
        })
    }

    getAllByTypeId3(3);

    function getAllByTypeId4(typeId) {
        $.ajax({
            type: "post",
            dataType: "json",
            data: {
                typeId: typeId
            },
            url: "/user/getAllBraodcastAndCoueseByTypeId",
            success: function (data) {
                user4.result = data;
                user4.type = data[0].type;
                console.log(data);
            }
        })
    }

    getAllByTypeId4(4);

    function getAllByTypeId5(typeId) {
        $.ajax({
            type: "post",
            dataType: "json",
            data: {
                typeId: typeId
            },
            url: "/user/getAllBraodcastAndCoueseByTypeId",
            success: function (data) {
                user5.result = data;
                user5.type = data[0].type;
                console.log(data);
            }
        })
    }

    getAllByTypeId5(5);


    //遍历老师基本信息
    var teacher = new Vue({
        el: '#teacher',
        data: {
            result: []
        }
    });


    function getShowTeacher() {
            $.ajax({
                type: "post",
                dataType: "json",
                url: "/getShowTeacher",
                success: function (data) {
                    teacher.result = data;
                    console.log(data)
                }
            })
    }

    getShowTeacher();
//    姚文斌
    var goEasy = new GoEasy({
        host:'hangzhou.goeasy.io',//应用所在的区域地址，杭州：hangzhou.goeasy.io，新加坡：singapore.goeasy.io
        appkey: "BC-7aa730f238184e2eb8e4dcbd087e10e0",//替换为您的应用appkey
        forceTLS:false, //如果需要使用HTTPS/WSS，请设置为true，默认为false
        onConnected: function() {
            console.log('连接成功！')
        },
        onDisconnected: function() {
            console.log('连接断开！')
        },
        onConnectFailed: function(error) {
            console.log('连接失败或错误！')
        }
    });
    //订阅，接受消息
    goEasy.subscribe({
        channel: "Puser_channel",//订阅的channel
        onMessage: function (message) {
            $("#message").html("新消息："+'<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+message.content);
            $("#tubiao").css('display','block');
            console.log("Channel:" + message.channel + " content:" + message.content);
        }
    });
    $("#info").click(function () {
        //点击消息图标后跳转到新的界面，进入个人中心菜单下的个人消息子菜单

    });

</script>


</body>

</html>